package edu.vt.ece.rt.dstm.contention;

import edu.vt.ece.rt.dstm.Context;


public class Aggressive extends AbstractContentionPolicy{
	/* Not good for QR, might lead to live locks
	 * @see edu.vt.ece.rt.dstm.contention.AbstractContentionPolicy#resolve(edu.vt.ece.rt.dstm.Context, edu.vt.ece.rt.dstm.Context)
	 */
	@Override
	public int resolve(Context context1, Context context2) {
		return -1;			//Always return the context1 as smaller, towards head of queue, calling context wins
	}

	@Override
	public void init(Context context) {}

	@Override
	public void open(Context context) {}
}
